
package com.ccc.scala.base8_match

object Match11 {
  def main(args: Array[String]): Unit = {
    // 函数参数

    val list = List(
      ("a", 1), ("b", 2), ("c", 3)
    )
    val list1 = list.map {
      case (k, v) => {
        (k, v * 2)
      }
    }
    println(list1) // List((a,2), (b,4), (c,6))

  }

}
